import org.apache.commons.httpclient.HttpClient
import org.apache.commons.httpclient.methods.GetMethod

/**
  * description:
  * Rabcheng
  * Date:2019/5/10 13:58
  **/
object HttpClient {

  def main(args: Array[String]): Unit = {

    val client = new HttpClient()
    val getMethod = new GetMethod("http://192.168.100.3:9200/ba_user_relation_article/ba_user_relation_article/_search?")
    val i = client.executeMethod(getMethod)

    println(i)

    val string = getMethod.getResponseBodyAsString

    println(string)








  }

}
